#!/bin/bash
echo "maven 打包..............."
mvn clean package -DskipTests=true
echo "maven 打包完成............"
echo "docker 打包镜像..........."
docker build -t registry.cn-chengdu.aliyuncs.com/wanrue/prometheus-discovery:latest .
echo "docker 打包镜像完成........"
echo "docker 推送镜像..........."
docker push registry.cn-chengdu.aliyuncs.com/wanrue/prometheus-discovery:latest
echo "docker 推送镜像完成........"
echo "........................."
echo "........................."